package org.xielei.stream;

/**
 * ForTest
 *
 * @author xielei
 * @date 2020/10/22
 */
public class ForTest {

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(">>>>>>>before " + i);
            if (returnTest(i)) {
                continue;
            }
            System.out.println("after>>>>>>> " + i);
        }
    }

    private static boolean returnTest(int i) {
        if (i < 5) {
            System.out.println("-----num: " + i);
            return true;
        }
        return false;
    }
}
